package com.qiandw.common.result;

import java.util.HashMap;
import java.util.Map;

/**
 * 消息返回码常量类
 *
 * @author KG
 */
public class MessageConstants {
    public static final Map<String, String> MSG_SUCCESS = new HashMap<String, String>() {{
        put("000000", "操作成功");
    }};
    public static final Map<String, String> MSG_FAILED = new HashMap<String, String>() {{
        put("999999", "操作失败");
    }};
    public static final Map<String, String> MSG_SYS_EXCEPTION = new HashMap<String, String>() {{
        put("999001", "系统异常");
    }};
    public static final Map<String, String> MSG_ILLEGAL_ARGUMENT = new HashMap<String, String>() {{
        put("999002", "参数有误");
    }};
    public static final Map<String, String> MSG_ITEM_EXISTS = new HashMap<String, String>() {{
        put("999003", "对象已存在");
    }};
    public static final Map<String, String> MSG_ITEM_NOT_EXIST = new HashMap<String, String>() {{
        put("999004", "对象不存在");
    }};
    public static final Map<String, String> MSG_UNUSABLE_STAT = new HashMap<String, String>() {{
        put("999005", "状态错误");
    }};
    public static final Map<String, String> MSG_NO_LOGIN = new HashMap<String, String>() {{
        put("999006", "未登录");
    }};
    public static final Map<String, String> MSG_ACCESS_DENY = new HashMap<String, String>() {{
        put("999007", "访问拒绝");
    }};
    public static final Map<String, String> MSG_INVALID_LOGIN = new HashMap<String, String>() {{
        put("999008", "无效登录");
    }};
    public static final Map<String, String> MSG_REMOTE_ACCESS_ERROR = new HashMap<String, String>() {{
        put("999009", "远程访问错误");
    }};
}
